package com.whfc.hj;

import com.whfc.hj.client.HjClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Description: 扬尘模拟客户端(成都市智慧工地)
 * @author: xugcheng
 * @version: 1.0
 * @date: 2020-12-08 11:14
 */
@SpringBootApplication
public class HjClientApp implements CommandLineRunner {

    private static Logger logger = LoggerFactory.getLogger(HjClientApp.class);

    public static void main(String[] args) {
        SpringApplication.run(HjClientApp.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        logger.info("HjClientApp...启动");
        String host = "";
        host = "123.60.53.116";//测试
//        host = "121.196.130.108";//生产
//        host = "localhost";
        HjClient client = new HjClient();
        client.connect(host, 8150);
    }
}
